package com.wing.res.model.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wing.product.model.response.ProductPlanningTreeVo;
import com.wing.res.model.entity.ResProductDraw;
import com.wing.res.model.request.ProcessProjectData;
import com.wing.res.model.request.TestItemData;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @version 1.1.0
 * @Author hz
 * @Date 2024-09-02 14:46
 **/
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ResProTaskDetailVo {

    private Long id;

    //客户id
    private Long customerId;

    private Long extProductId;

    //来源
    private String source;

    private String proUnitId;

    //数量
    private BigDecimal quantity;

    //客户名称
    private String customerName;

    //客户产品名称
    private String cusProductName;
    //产品规格
    private String cusProductSpec;
    //客户产品编码
    private String cusProductNo;

    private Long costCheckType;


    private Long cusProUnitId;

    private Long boxStatus;

    private Long checkStatus;
    //产品图号
    private String cusProductFigure;
    //物资类别
    private String cusProductCategory;
    //产品类型名称
    private String productTypeName;
    //订单编号
    private String orderNo;
    private String orderCode;

    private String status;

    private String statusName;
    //计划交货时间
    private LocalDateTime planGivenTime;
    //创建人
    private String creator;
    //创建时间
    private LocalDateTime createTime;

    private String productNature;
    private String productNatureName;
    private String assemblyNature;
    private String assemblyNatureName;
    private Long productTypeId;
    //物料id
    private Long productDetailId;

    private String isUseOrAdd;
    //新添加的物料号 isUseOrAdd = 2 才有
    private String inSkuCode;
    private String inSkuName;
    private String inSkuSpec;
    private String inSkuUnitName;
    private String inUnit;
    private String inUnitName;
    private BigDecimal mainUnitRate;
    private BigDecimal subUnitRate;
    private String inRemark;
    //自研的附件id
    private Long zyEnclosureId;

    //图纸信息
    private ResProductDraw drawInfo;

    //sku关联的工序信息
    private List<ProcessProjectData> processProjectData;

    //关联的检测项目信息
    private List<TestItemData> testItemData;

    private List<ProductPlanningTreeVo> productPlanningTreeVos;

    //附件信息
    private String processDescription;
    private String attachmentPdfUrl;

    private String mainCalWay;
    private String mainCalWayName;
    private Long mainUnitId;
    private String mainUnitName;
    private String subCalWay;
    private String subCalWayName;
    private Long subUnitId;
    private String subUnitName;


}
